package game;


import engine.*;
import engine.game.Game_I;
import engine.video.palette.Palette;
import game.gamestate.title.Title;

public final class Program {
	public static void main(String[] args) {
		Globals.GamePalette = Palette.generatePaletteIRGB();
		Engine engine = Engine.getEngine();
		engine.initialize();
		engine.setNextGame(new Title());
		
		try {
			while (!Globals.KillSwitch) {
				engine.execute();
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
		engine.shutDown();
	}
}